<div class="gallery">
<h2>Edit Gallery</h2>
	<?php echo $form->create('Gallery');?>
		<?php echo $form->input('id');?>
		<?php echo $form->input('name', array('class' => 'required'));?>
		<?php echo $form->input('url', array('class' => 'required'));?>
		<?php echo $form->input('primary_image');?>
		<?php echo $form->input('Image/Image', array('options' => $images, 'multiple' => 'multiple'));?>
		<?php echo $form->submit('Update');?>
	</form>
</div>
<div class="actions">
	<ul>
		<li><?php echo $html->link('Delete', array('action'=>'delete', $html->tagValue('Gallery/id')), null, 'Are you sure you want to delete #' . $html->tagValue('Gallery/id')); ?>
		<li><?php echo $html->link('List Galleries', array('action'=>'index')); ?></li>
	</ul>
</div>
